package com.blue.po.system;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 系统文件信息表
 * </p>
 *
 * @author nanjie.chen
 * @since 2023-09-17
 */
@Data
@TableName("file_info")
@Schema(description = "系统文件信息表")
public class FileInfoPO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private String id;

    @Schema(description = "文件编码")
    private String code;

    @Schema(description = "文件名称")
    private String fileName;

    @Schema(description = "文件类型")
    private String type;

    @Schema(description = "文件全路径")
    private String path;

    @Schema(description = "文件体积")
    private String size;

    @Schema(description = "业务类型")
    private String business;

    @Schema(description = "状态(0-可下载,1-不可下载)")
    private String status;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者ID")
    private String creatorId;

    @Schema(description = "创建者名称")
    @TableField(exist = false)
    private String username;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private String createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "最近更新者ID")
    private String updaterId;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "最近更新时间")
    private String updateTime;
}
